﻿using System.ComponentModel.DataAnnotations;
using Actya.Core.Infrastructure;
using Actya.Web.Infrastructure;

namespace Actya.Web.ViewModels.Admin
{
	public class CreateHostViewModel
	{
		public LocalOrRemote LocalOrRemoteDatabase { get; set; }
		public string ConnectionString { get; set; }
		public string DatabaseName { get; set; }
		public string DataDirectory { get; set; }
		public string PagesPrefix { get; set; }
        public bool ShowPagesPrefix { get; set; }
		public bool ShowMembershipTypeOptions { get; set; }
		public MembershipType MembershipType { get; set; }
		public string MembershipProvider { get; set; }
		public string RoleProvider { get; set; }

		public string[] AvailableMembershipProviders { get; set; }
		public string[] AvailableRoleProviders { get; set; }

		public CreateHostViewModel()
		{
			this.MembershipType = MembershipType.Builtin;
		}
	}

	public enum LocalOrRemote
	{
		Local,
		Remote
	}
}